package com.mrobuy.jdvc.entity;

import com.gavel.annotation.FieldMeta;
import com.gavel.annotation.TableMeta;
import com.gavel.database.SQLExecutor;

import java.util.Date;

@TableMeta(name = "SYNC_STATE", title = "同步状态")
public class SyncState {

    @FieldMeta(name = "ID", title = "ID", length = 32, primary = true)
    private String id;

    @FieldMeta(name = "SHOPNAME", title = "店铺名称", length = 50)
    private String shopName;

    @FieldMeta(name = "NAME", title = "名称", length = 50)
    private String name;

    @FieldMeta(name = "VALUE", title = "数据", length = 50)
    private String value;

    @FieldMeta(name = "THEDATE", title = "时间点")
    private Date theDate;

    @FieldMeta(name = "UPDATETIME", title = "更新时间")
    private Date updateTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getTheDate() {
        return theDate;
    }

    public void setTheDate(Date theDate) {
        this.theDate = theDate;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public static void main(String[] args) throws Exception {
        SQLExecutor.createTable(SyncState.class);
    }
}
